@@ -21,7 +21,12 @@ module LiquidDroppable |
||
| 21 | 21 |
end |
| 22 | 22 |
|
| 23 | 23 |
included do |
| 24 |
- const_set :Drop, Kernel.const_set("#{name}Drop", Class.new(Drop)) unless const_defined?("#{name}Drop")
|
|
| 24 |
+ const_set :Drop, |
|
| 25 |
+ if Kernel.const_defined?(drop_name = "#{name}Drop")
|
|
| 26 |
+ Kernel.const_get(drop_name) |
|
| 27 |
+ else |
|
| 28 |
+ Kernel.const_set(drop_name, Class.new(Drop)) |
|
| 29 |
+ end |
|
| 25 | 30 |
end |
| 26 | 31 |
|
| 27 | 32 |
def to_liquid |